home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in1.uu.net!world!mv!usenet
- From: ENGR@GSSI.MV.COM (Michael Furman)
- Subject: Re: Passing a va_list as a parameter. How?
- Message-ID: <DKpurI.M3@mv.mv.com>
- Mime-Version: 1.0
- Organization: GSSI
- Date: Fri, 5 Jan 1996 16:21:17 GMT
- References: <4chi0s$gg7@lys.vnet.net>
- X-Newsreader: WinVN 0.93.10
- X-Nntp-Posting-Host: gssi.mv.com
-
- In article <4chi0s$gg7@lys.vnet.net>, gregg@lys.vnet.net says...
- >
- >Here's what I'm trying to do:
- >
- >void foo (int arg1, ...)
- >{
- > va_list args;
- > va_start(args,arg1);
- > ...
- > va_end(args);
- >}
- >
- >void callfoo (int arg1, ...)
- >{
- > foo (arg1, ...);
- >} ^^^^^^^^^^^^^^^^
- >
- >How can I do this?
-
- You can't. You have to implement second variant of "foo" function that
- will accept second argument of type "va_list" - like vprintf, vsprintf.
- BTW - it is a "C" (not C++) question.
-
-
- >
- >I am using MSVC C++ 4.0.
- >
- >Thanks,
- >
- >-Greg G
- >
-
- --
- ---------------------------------------------------------------
- Michael Furman, (603)893-1109
- Geophysical Survey Systems, Inc. fax:(603)889-3984
- 13 Klein Drive - P.O. Box 97 engr@gssi.mv.com
- North Salem, NH 03073-0097 71543.1334@compuserve.com
- ---------------------------------------------------------------
-
-